<?php

 
Zend_Loader::loadClass("BaseDBRows");
Zend_Loader::loadClass("Size");
class Sizes extends BaseDBRows
{
	protected function setUp()
	{
		$this->_tableName = Size::_tablename;
	}	
	
	public function getSize(){
		Zend_Loader::loadClass("QueryCreator");
		
		$query = new QueryCreator();
		$query->addSelect("size_code, size");
		$query->addOrderBy("display_order");
		$query->addFrom($this->_tableName);
		
		$db = DBCon::instance();
		
		$result = $db->executeQuery($query->createSQL());
		$data = array();
		foreach($result as $key => $value) {
			
			$data[$value['size_code']] = $value['size'];
			
		}

		return $data;
	}
	
	
	
}
?>